de.cebis.moccabox.io.view.template.config.xmlbeans
Class TemplateViewConfigurator

java.lang.Object
  extended by de.cebis.moccabox.util.AbstractConfigurator
      extended by de.cebis.moccabox.io.view.template.config.xmlbeans.TemplateViewConfigurator
All Implemented Interfaces:
IConfigurator

public class TemplateViewConfigurator
extends AbstractConfigurator

Spezialisierung des AbstractConfigurator, der die Konfiguration einer TemplateView übernimmt. Es wird die Spezifikation eines entsprechenden XmlAttributeConfigurationBean-Bean verwendet. Konfiguriert wird diese View über die moccapart_x.xml. TemplateViews werden für vor allem für Masken, Formulare und Bestätigungsmeldungen verwendet.

 <view id="mask" viewhandler="de.cebis.moccabox.io.view.template.TemplateView">
  <configuration xsi:type="vr:templateConfiguration" configurator="de.cebis.moccabox.io.view.template.config.xmlbeans.TemplateViewConfigurator">
   <template>../templates/mask.ftl</template>
  </configuration>
 </view>

Author:
weichelt
See Also:
TableView

Field Summary
 
Fields inherited from class de.cebis.moccabox.util.AbstractConfigurator
log
 
Constructor Summary
TemplateViewConfigurator()
           
 
Method Summary
 void configure(java.lang.Object objectToConfigure)
          Konfigurieren des Objektes.
 void setSource(java.lang.Object configSource)
          Setzen des Quellobjektes, das die Konfigurationsspezifikation enthält.
 
Methods inherited from class de.cebis.moccabox.util.AbstractConfigurator
validateSourceObject, validateTargetObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateViewConfigurator

public TemplateViewConfigurator()
Method Detail

configure

public void configure(java.lang.Object objectToConfigure)
               throws ConfigurationException
Konfigurieren des Objektes.

Specified by:
configure in interface IConfigurator
Specified by:
configure in class AbstractConfigurator
Parameters:
objectToConfigure - Das Objekt (TemplateView), das konfiguriert werden soll.
Throws:
ConfigurationException - Fehler, der bei der Konfiguration aufgetreten ist. Bspw. kann die Konfigurationsquelle nicht gelesen werden oder das zu konfigurierende Objekt ist vom falschen Format.

setSource

public void setSource(java.lang.Object configSource)
               throws ConfigurationException
Setzen des Quellobjektes, das die Konfigurationsspezifikation enthält.

Specified by:
setSource in interface IConfigurator
Specified by:
setSource in class AbstractConfigurator
Parameters:
configSource - Quelle der Konfiguration.
Throws:
ConfigurationException - Fehler, der bei der Konfiguration aufgetreten ist. Bspw. kann die Konfigurationsquelle nicht gelesen werden.